package Api;

class Box <T>{
    private T content;
    public void setContent(T content){
        this.content=content;
    }
    public T getContent() {
        return content;
    }
}

public class GenericDemo2 {
    public static void main(String[] args) {
        Box<String>b1=new Box<>();
        b1.setContent("100");
        String s1 =b1.getContent();
        System.out.println(s1);
    }
}
